//
//  AstroAppDelegate.h
//  Astro
//
//  Created by Trinh Huy Cuong on 11/27/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#define APP_DELEGATE (AstroAppDelegate*)[[UIApplication sharedApplication] delegate]
#define BBStateHide 1
#define BBStateShowAbout 2
#define BBStateShowDolar 3
#define BBTypeEast 1
#define BBTypeWest 2

@class SOUser, VCDateInput, VCDataInput;
@interface AstroAppDelegate : NSObject <UIApplicationDelegate> {    
    UIWindow *window;
    UINavigationController *navigationController;
	UINavigationItem *navigationItem; 
	
	UIBarButtonItem *mainButtonItem;	
	UIButton *bottomButtonAccount, *bottomButtonAbout, *bottomButtonAddDolar;
	SOUser *userInfo;
	VCDateInput *dateInput;
	VCDataInput *dataInput;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
@property (nonatomic, retain) IBOutlet UINavigationItem *navigationItem;
@property (nonatomic, retain) UIBarButtonItem *mainButtonItem;
@property (nonatomic, retain) SOUser *userInfo;
@property (nonatomic, retain) VCDateInput *dateInput;
@property (nonatomic, retain) VCDataInput *dataInput;

- (void) mainButtonItemAction;
- (void) bottomButtonControlWithState:(NSInteger)state andType:(NSInteger)type;
- (void) bottomButtonControlActions:(id)sender;

@end

